package com.atguigu.crowd.service.api;

import com.atguigu.crowd.entity.Auth;

import java.util.List;
import java.util.Map;

/**
 * @author zzqstart
 * @Description
 * @date 2022-09-06 22:14
 */
public interface AuthService {
    List<Auth> getAllAuth();

    List<Integer> getAuthByRoleId(Integer roleId);

    void saveRoleAssignAuth(Map<String, List<Integer>> map);

    void saveAuth(Auth auth);

    void editAuth(Auth auth);

    void removeAuth(Auth auth);

    void saveRootAuth(Auth auth);

    List<String> getAssignedAuthNameByAdminId(Integer adminId);
}
